package com.shujia.abstract_.exer1;

public class Person {

    private Vehicle vehicle;

    public void goHome(Vehicle vehicle) {
        vehicle.run();
    }

    public void goHome() {
        vehicle.run();
    }

    public Vehicle getVehicle() {
        return vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }
}
